package com.ctjsoft.fileupload.server.impl;

import com.ctjsoft.fileupload.entity.TMinioServer;
import com.ctjsoft.fileupload.mapper.TMinioServerMapper;
import com.ctjsoft.fileupload.server.TMinioServerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TMinioServerServiceImpl implements TMinioServerService {

    @Autowired
    TMinioServerMapper tMinioServerMapper;

    @Override
    public List<TMinioServer> getMinioServerList() {
        return tMinioServerMapper.getMinioServerList();
    }

    @Override
    public int addMinioServer(TMinioServer tMinioServer) {
        return tMinioServerMapper.addMinioServer(tMinioServer);
    }

    @Override
    public int updateMinioServer(TMinioServer tMinioServer) {
        return tMinioServerMapper.updateMinioServer(tMinioServer);
    }

    @Override
    public int deleteMinioServer(String id) {
        return tMinioServerMapper.deleteMinioServer(id);
    }

    @Override
    public TMinioServer getMinioServerById(String id) {
        return tMinioServerMapper.getMinioServerById(id);
    }

    @Override
    public TMinioServer getMinioServerByName(String serverName) {
        return tMinioServerMapper.getMinioServerByName(serverName);
    }
}
